<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<table border="1px">
		<tr>
			<th>姓名</th>
			<th>性别</th>
			<th>年龄</th>
			<th>所属部门</th>
			<th>工作年限</th>
			<th>修改操作</th>
			<th>删除操作</th>
		</tr>
	
<c:forEach items="${emps }" var="emp">
<tr>
<td>${emp.name}</td>
<td>${emp.sex }</td>
<td>${emp.age }</td>
<td>${emp.department}</td>
<td>${emp.year }</td>
<td><a href="updateEmpById?id=${emp.id }">修改</a></td>
<td><a href="deleteById?id=${emp.id }">删除</a></td>
</tr>
</c:forEach>
</table>
<a href ="four_addEmployee.jsp">新增员工信息</a>

</body>
</html>